/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.smarttmt.idu.smarttmtiduapp.jpa.persistence;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author root
 */
@Entity
@Table(name = "ACECENEX")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Acecenex.findAll", query = "SELECT a FROM Acecenex a"),
    @NamedQuery(name = "Acecenex.findByAeeecodi", query = "SELECT a FROM Acecenex a WHERE a.aeeecodi = :aeeecodi"),
    @NamedQuery(name = "Acecenex.findByAeeedesc", query = "SELECT a FROM Acecenex a WHERE a.aeeedesc = :aeeedesc")})
public class Acecenex implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 6)
    @Column(name = "AEEECODI")
    private String aeeecodi;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 250)
    @Column(name = "AEEEDESC")
    private String aeeedesc;

    public Acecenex() {
    }

    public Acecenex(String aeeecodi) {
        this.aeeecodi = aeeecodi;
    }

    public Acecenex(String aeeecodi, String aeeedesc) {
        this.aeeecodi = aeeecodi;
        this.aeeedesc = aeeedesc;
    }

    public String getAeeecodi() {
        return aeeecodi;
    }

    public void setAeeecodi(String aeeecodi) {
        this.aeeecodi = aeeecodi;
    }

    public String getAeeedesc() {
        return aeeedesc;
    }

    public void setAeeedesc(String aeeedesc) {
        this.aeeedesc = aeeedesc;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aeeecodi != null ? aeeecodi.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Acecenex)) {
            return false;
        }
        Acecenex other = (Acecenex) object;
        if ((this.aeeecodi == null && other.aeeecodi != null) || (this.aeeecodi != null && !this.aeeecodi.equals(other.aeeecodi))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.smarttmt.idu.smarttmtiduapp.jpa.persistence.Acecenex[ aeeecodi=" + aeeecodi + " ]";
    }
    
}
